#pragma once

#include "QSPrerequisites.h"
#include "QSSystems.h"
#include <lua/lua.hpp>

namespace QS
{
	class LuaScriptSystem : public ScriptSystem
	{
	public:
		LuaScriptSystem(Engine* e) : ScriptSystem(e), L(0) { }
		~LuaScriptSystem() { }

		virtual void initialize();
		virtual void shutdown();
		virtual void update(){}

		virtual void execute(const String& chunk);
		virtual void runScript(const QS::String &);
	private:
		lua_State* L;
	};
}

